package com.ibangnuo.framework.newLandpay.impl.response;

import com.ibangnuo.framework.newLandpay.api.NewLandpayResponse;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.apache.commons.lang3.StringUtils;

import java.util.List;

/**
 * @Author: wwy
 * @Date: 2020-01-10 14:20
 */
@Data
@ToString
@NoArgsConstructor
public class NewLandMCCSearchResponse implements NewLandpayResponse {
    private String msgCd;
    private String msgDat;
    private String signValue;
    private List<NewLandMCCSearch> rec;
    private String body;
    @Override
    public boolean isSuccess() {
        return StringUtils.isNotEmpty(msgCd);
    }

    @Override
    public String code() {
        return this.msgCd;
    }
}
